<template>
  <div class="q-pa-md">
    <t-fab
      v-model="fab"
      label="Actions"
      label-position="left"
      color="purple"
      hide-icon
      direction="right"
    >
      <t-fab-action color="primary" @click="onClick" hide-icon label="Email" />
      <t-fab-action
        color="secondary"
        @click="onClick"
        hide-icon
        label="Alarm"
      />
    </t-fab>
  </div>
</template>

<script>
  import { ref } from 'vue';

  export default {
    setup() {
      return {
        fab: ref(true),
        onClick() {
          // console.log('Clicked on a fab action')
        },
      };
    },
  };
</script>
